# -*- encoding : utf-8 -*-
class Faculty < ActiveRecord::Base
  def self.getFacultyName(id)
    faculty = Faculty.find(id)
    return faculty.faculty_name
  end
  
  has_many :users
  attr_accessible :faculty_name
  
  validates :faculty_name, :presence => true, :uniqueness => true
end
